import axios from '../../axios'


const userApi = {
    login(data) {
        return axios({
            url: "/users/login",
            method: "post",
            data
        })
    },
    addUser(data) {
        return axios({
            url: "/users/adduser",
            method: "post",
            data
        })
    },
    delUser(data) {
        return axios({
            url: "/users/deluser",
            method: "post",
            data
        })
    },
    getUserByID(data) {
        return axios({
            url: "/users/getuserbyid",
            method: "post",
            data
        })
    },
    changeUserInfo(data) {
        return axios({
            url: "/users/changeuserinfo",
            method: "post",
            data
        })
    },
    getAllUsers(data) {
        return axios({
            url: "/users/getallusers",
            method: "post",
            data
        })
    },
    approveID(data){
        return axios({
            url:"/users/approveid",
            method:"post",
            data
        })
    },
    rejectID(data){
        return axios({
            url:"/users/rejectID",
            method:"post",
            data
        })
    },
    changeFrozenStatus(data){
        return axios ({
            url:"/users/changefrozenstatus",
            method:"post",
            data
        })
    }
}

export default userApi